package top.lingkang.fas.admin.param;

import lombok.Data;
import top.lingkang.finalvalidated.constraints.Length;
import top.lingkang.finalvalidated.constraints.NotBlank;
import top.lingkang.finalvalidated.constraints.Tag;

/**
 * @author lingkang
 * created by 2025/7/20 1:53
 */
@Data
public class LoginParam {

    // 验证码唯一标识
    private String id;

    @Tag("账号")
    @NotBlank
    @Length(min = 3, max = 20)
    private String username;

    @Tag("密码")
    @NotBlank
    @Length(min = 3, max = 20)
    private String password;

    @Tag("验证码")
    @NotBlank
    @Length(min = 1, max = 8)
    private Integer code;
}
